# -*- encoding=utf-8 -*-

from froModuleDrivers.conveyerBeltDriver import ConveyerBeltDriver
from froModuleDrivers.nioManager import NioManager
import time

driver = ConveyerBeltDriver("192.168.1.105", 4001)
manager = NioManager(driver)
manager.run()

# 传送带
driver.startConveyerBelt()
time.sleep(2)
driver.backConveyerBelt()
time.sleep(2)
driver.stopConveyerBelt()
time.sleep(2)

manager.shutdownGracefully()
